import Vue from 'vue'
import Router from 'vue-router'

// 安监公共业务
import Base from '../common/anjian/base/router' // 公共页面（用户信息、修改密码、反馈、播放等...）
import Company from '../common/anjian/company/router' // 企业信息
import Law from '../common/anjian/law/router' // 行政执法
import Emergency from '../common/anjian/emergency/router' // 应急管理
import Todo from '../common/anjian/todo/router' // 待办事项
import DangerCheck from '../common/anjian/dangerCheck/router' // 隐患排查
import TwoDoor from '../common/anjian/twoDoor/router' // 二道门
import Contact from '../common/anjian/contact/router' // 通讯联络
import Repository from '../common/anjian/repository/router' // 知识库
import Message from '../common/anjian/message/router' // 通知公告

// 徐圩定制业务
import Login from '../apps/login/router'
import Home from '../apps/home/router'
import Analysis from '../apps/analysis/router' // 统计分析
import DangerSourceCheck from '../apps/danger-source-check/router' // 重大危险源
import SpecialWork from '../apps/special-work/router' // 特殊作业
import SecurityRisk from '../apps/security-risk/router' // 安全风险

// import Professional from '../apps/professional/router' // 专家库 未上线模块

import Map from '../apps/map/router' // 地图组件测试

const routes = [
  {
    path: '/',
    name: 'index',
    redirect: '/login'
  }
].concat(
  Login,
  Home,
  Base,
  Law,
  Todo,
  Company,
  DangerSourceCheck,
  Repository,
  Emergency,
  Analysis,
  Contact,
  TwoDoor,
  SpecialWork,
  DangerCheck,
  Message,
  SecurityRisk,
  Map
)
Vue.use(Router)

export default new Router({routes})
